package com.yz.xyt.service;

import com.yz.xyt.domain.User;

import java.util.List;

public interface IUserService {
    public User findUser(String userName);

    public List<User> findList();

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 生成系统用户
     * @param userList
     * @return
     */
    void createSystemAccount(List<User> userList);

    /**
     * 根据用户账号更新
     * @param record
     */
    void updateByUserNameSelective(User record);

    /**
     * 根据用户账号删除用户
     * @param userName
     * @return
     */
    int deleteByUserName(String userName);

    /**
     * 重置用户密码
     * @param user
     * @return
     */
    int resetPassword(User user);
}
